﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Views/Shared/Blog.Master" CodeBehind="NewPost.aspx.cs" Inherits="VladanStrigoNET.Samples.Blogged.Views.NewPost" %>
<%@ Import namespace="VladanStrigoNET.Samples.Blogged.Controllers"%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Add new post</h1>
    <% using (Html.Form<BlogController>(action => action.AddNewPost())) {%>
        <label for="title">Title:</label>
        <%=Html.TextBox("title", "", 80, 80) %>
        <label for="body">Content:</label>
        <%=Html.TextArea("body", "", 255, 5, 40) %>
        <br />
        <br />
        <%= Html.SubmitButton("submit", "Save!") %>
    <% } %>
</asp:Content>
